package com.yidu.util;

/**
 * 描述:
 *
 * @author xiaokaijie
 * @date 2020/7/29 14:51
 */
public class BasePojo {
    private  int limit ;    //每页显示的行数
    private int page ;      //页数
    private int offset;   //分页开始的行数

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getOffset() {
        offset = (page-1)*limit;
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }
}
